package gui.frame;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;

public class BackgroundPanel extends JPanel {
    private Image image = null;

    public BackgroundPanel(Image image) {
        this.image = image;
    }

    protected void paintComponent(Graphics g) {
        g.drawImage(this.image, 0, 0, this.getWidth(), this.getHeight(), this);
    }
}
